package com.cskaoyan.day30.work1._01isingleton;

public class MySingleton4 {
    private static MySingleton4 mySingleton4;
    private MySingleton4(){

    }
    public static MySingleton4 getInstance(){
        if (mySingleton4 == null){
            synchronized (MySingleton4.class){
                if (mySingleton4 == null){
                    mySingleton4 = new MySingleton4();
                }
            }
        }
        return mySingleton4;
    }
}
